package com.sun.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Project: hospitalDrugInformationManagement
 * @Author: 86178
 * @Date: 2023/3/31 14:04
 * @FileName: Msg
 * @Description: ""
 */
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Msg extends Model<Msg> {
    @TableId()
    private Long msgId;
    /**
     * 0系统消息 1有效期预警 2过期药品
     */
    private String title;
    private String content;
    private Integer status;
    private Long msgUserId;
    private LocalDateTime dateTime;
    private Long userId;
    private String drugName;
    private Integer msgStatus;
    @TableField(exist = false)
    private String msgUserName;
}
